﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Configuration;

namespace lyAdmin.Common
{
    public class RedisSingleton
    { 
        private static CSRedis.CSRedisClient _redis;
        /// <summary>
        /// redis
        /// </summary>
        public static CSRedis.CSRedisClient Redis
        {
            get => _redis;
        }
        /// <summary>
        /// 初始化redis
        /// </summary>
        /// <param name="RedisStr">连接字符串</param>
        public static void Build(string RedisStr)
        {
            _redis = new CSRedis.CSRedisClient(RedisStr);
        }

    }
}
